package com.lt.utils.ViewUtils;

import android.view.View;

/**
 * view相关设置
 * @author LiuTong
 */
public class ViewUtils {

    public static void setViewGone(View...views){
        if(views!=null&&views.length>0){
            for(View view:views){
                if(view!=null &&view.getVisibility() == View.VISIBLE){
                    view.setVisibility(View.GONE);
                }
            }
        }

    }
    public static void setViewVisible(View...views){
        if(views!=null&&views.length>0){
            for(View view:views){
                if(view!=null && view.getVisibility() ==View.GONE){
                    view.setVisibility(View.VISIBLE);
                }
            }
        }

    }
}
